package com.ks.repair.service;

import com.ks.core.base.OperationContext;
import com.ks.core.dto.OperateBase;
import com.ks.core.dto.SearchCriteriaBase;
import com.ks.repair.controller.dto.RepairBillRequest;
import com.ks.repair.entity.BRepairBill;
import com.baomidou.mybatisplus.service.IService;
import com.ks.repair.entity.BRepairBillEx;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 报修-会员填写的报修单 服务类
 * </p>
 *
 * @author kingdee123
 * @since 2020-12-15
 */
public interface IBRepairBillService extends IService<BRepairBill> {

    Map<String, Object> getBRepairBillUserCount(OperationContext context);

    Map<String, Object> getServiceTypeUserCount(OperationContext context);

    Map<String, Object> getBRepairBillUserAddressCount(OperationContext context);

    Map<String, Object> selectRepairBillList(OperationContext context,SearchCriteriaBase searchCriteriaBase);

    int addRepairBill(OperationContext context, BRepairBill bRepairBill, List<BRepairBillEx> bRepairBillExList);

    int updateRepairBill(OperationContext context,BRepairBill bRepairBill);

    int deleteRepairBill(OperationContext context,BRepairBill bRepairBill);

    Map<String, Object> selectRepairBill(OperationContext context, RepairBillRequest repairBillRequest);


    Map<String, Object> selectRepairList(OperationContext context,SearchCriteriaBase searchCriteriaBase);

    int delRepairBillList(OperationContext context, OperateBase operateBase);

    int addRepairNo(OperationContext context, OperateBase operateBase);
}
